<template>
	<view class="list_xq">
		<text class="">
			{{text.name}}
		</text>
			<rich-text class="contont" :nodes="text.content">
			</rich-text>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				id:[],
				text:[],
			}
		},
		onLoad(option) {			this.id = option.id			console.log(this.id)		},
		created() {
			let that = this
			let params = {
				"id":that.id,
			}
			that.pyReq(that.$http.getClazzMindDetail,params,function(res){
					  that.text = res.result
			});
			// let headers={
			// 	  'content-type': 'application/x-www-form-urlencoded',
			// 	  'token': uni.getStorageSync('token')
			// }
			//  uni.request({
			// 	  url: that.$http.getClazzMindDetail,
			// 	  method: 'POST',
			// 	  data:params,
			// 	  header:headers,
			// 	  success: (res)=>{
			// 		  console.log(res)
			// 		  that.text = res.data.result
			// 	  },
			// 	  fail: (err)=>{
			// 		  console.log(err)
			// 	  }
			// }) 
		}
	}
</script>

<style>
	.list_xq{
		font-size: 26upx;
		color: #333333;
	}
	.list_xq text{
		display: block;
		margin: 30upx 44upx;
		line-height: 44upx;
	}
	.contont{
		font-size: 26upx;
		display: block;
		margin: 10upx 44upx;
		line-height: 33upx;
	}
		
</style>
